package com.teamall.web.app.db.dao;

import com.teamall.web.app.db.dao.mapper.ITestMapper;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * ${DESCRIPTION}
 *
 * @author
 * @create 2017-09-05 16:10
 **/
@Repository
public class TestDao extends SqlSessionDaoSupport {

    @Resource(name = "majorSqlSessionTemplate")
    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        super.setSqlSessionTemplate(sqlSessionTemplate);
    }
    public ITestMapper getMapper() {
        return getSqlSession().getMapper(ITestMapper.class);
    }
    public Integer qryFamilyByUserObjId(Integer userObjId) {
        return getMapper().qryFamilyByUserObjId(userObjId);
    }
}
